#!/bin/sh
CHARGE=$(cat /sys/class/power_supply/BAT1/capacity)
STATUS=$(cat /sys/class/power_supply/BAT1/status)
if [ "$STATUS" = "Discharging" ]; then
    bar="💡"
elif [ "$STATUS" = "Charging" ]; then
    bar="✨"
else
    bar="🔌"
fi
echo "$bar "
printf "\x0f%s%%" "$CHARGE"
